//
//  NSString+json.h
//  YBInsurance
//
//  Created by S2 on 03/05/2017.
//  Copyright © 2017 YB. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (json)

+ (NSString *)dictionaryToJSONString:(NSDictionary *)dictionary;

+ (NSString *)arrayToJSONString:(NSArray *)array;

- (id)jsonStringToObject;

- (CGSize)getStringHeightWithText:(NSString *)text font:(UIFont *)font viewWidth:(CGFloat)width;

-(float) widthForString:(NSString *)value fontSize:(float)fontSize andHeight:(float)height
;

@end
